package com.atguigu.edu.realtime.util;

import java.util.Random;

public class WasteUtil {

    public static void main(String[] args) {
        long b=System.currentTimeMillis();
        waste(7);
        System.out.println(System.currentTimeMillis()-b);

    }

    public static final void waste(int n){
        for (int i = 0; i < Math.pow(10,n) ; i++) {
            Math.sqrt(new Random().nextInt());
        }
    }
}
